package com.dd.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dd.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 供应商表
 * </p>
 *
 * @author dhd
 * @since 2024-12-10 03:51
 */
@Getter
@Setter
@TableName("suppliers")
@Schema(name = "Suppliers", description = "供应商表")
public class Suppliers extends BaseEntity {

    @Schema(description = "供应商唯一标识符")
    @TableId(value = "supplier_id", type = IdType.AUTO)
    private Integer supplierId;

    @Schema(description = "供应商名称")
    @TableField("supplier_name")
    private String supplierName;

    @Schema(description = "联系人姓名")
    @TableField("contact_name")
    private String contactName;

    @Schema(description = "联系电话")
    @TableField("contact_phone")
    private String contactPhone;

    @Schema(description = "登录密码")
    @TableField("password")
    private String password;

    @Schema(description = "电子邮箱地址")
    @TableField("email")
    private String email;

    @Schema(description = "地址")
    @TableField("address")
    private String address;
}
